﻿package com.firewolf.command.macrocommand;
/**
 * 宏命令，里面包含很多其他别的命令
 * @author Administrator
 *
 */
public class MacroCommand implements Command{
	private Command[] commands;
	public MacroCommand(Command[] commands) {
		this.commands = commands;
	}
	@Override
	public void execute() {
		for(int i = 0 ; i < commands.length ; i++){
			commands[i].execute();
		}
	}
}
